<template>
  <div class="grouplist-container">
    <div class="top">
      <img src="../../assets/img/default-graph/tx.jpg" radius3 alt="">
      <div class="info">
        <h3>音乐之声</h3>
        <div class="describe">
          <div class="img_group">
            <img src="../../assets/img/default-graph/tx.jpg" radius3 alt="">
            <img src="../../assets/img/default-graph/tx.jpg" radius3 alt="">
            <img src="../../assets/img/default-graph/tx.jpg" radius3 alt="">
          </div>
          <span>909成员</span>
          <i class="iconfont icon-r_arrow" />
        </div>
      </div>
      <g-button size="mini">加入</g-button>
    </div>
    <div class="wrapper">
      <span>简介</span>
      <div class="r-box"><img src="../../assets/img/grouplist/icon_xhzc@2x.png"><span>协会章程</span></div>
    </div>
    <p class="intro">
      音乐可以分为声乐和器乐两大类型，又可以粗略的分为古典音乐、民间音乐、原生态音乐、现代音乐（包括流行音乐）等。在艺术类型中，音乐具有抽象性，音乐从历史发展上可分为东方音乐和西方音乐。
    </p>

    <g-divider :height="dividerHeight" class="g-divider" />
    <g-title class="tit" title="协会活动" font-color="#333333" line-color="#3B87F6" line more="/articleDetail/17" />
    <list />
    <list />
    <list />
    <list />
    <list />
    <list />
  </div>
</template>

<script>
import gButton from '../../components/button'
import list from './components/list.vue'
export default {
  components: {
    gButton,
    list
  },
  data() {
    return {
      dividerHeight: 10
    }
  }
}
</script>

<style lang="scss" scoped>
.grouplist-container {
  .top {
    box-sizing: border-box;
    height: 95px;
    width: 100%;
    background-image: url('../../assets/img/grouplist/comity_top_bg@2x.png');
    background-size: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    img {
      width: 55px;
      height: 55px;
    }
    .info {
      flex: 1;
      margin-left: 10px;
      display: flex;
      flex-direction: column;
      text-align: left;
      h3 {
        font-size: 18px;
        height: 20px;
        line-height: 20px;
        color: #fff;
        margin-top: 6px;
      }
      .describe {
        height: 30px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        margin-top: 4px;
        .img_group {
          position: relative;
          img {
            height: 16px;
            width: 16px;
            border-radius: 10px;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            &:first-child {
              left: 0;
              z-index: 3;
            }
            &:nth-child(2) {
              left: 10px;
              z-index: 2;
            }
            &:nth-child(3) {
              left: 20px;
              z-index: 1;
            }
          }
        }
        span {
          font-size: 12px;
          color: #fff;
          margin-left: 44px;
        }
        .iconfont {
          display: block;
          height: 12px;
          transform: scale(0.46);
          color: #fff;
        }
      }
    }
  }
  .wrapper {
    padding: 16px 16px 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    span{
      color: #333;
      font-size: 14px;
      font-weight: 800;
    }
    .r-box {
      font-size: 12px;
      display: flex;
      text-align: center;
      padding-right: 6px;
      img {
        height: 15px;
        margin-right: 4px;
        padding-bottom: 2px;
      }
      span {
        color: #3B87F6;
        font-size: 12px;
        padding-top: 2px;
        font-weight: 400;
      }
    }
  }
  .intro {
    padding: 0 16px 16px;
    font-size: 12px;
    line-height: 20px;
    text-align: left;
  }
  .tit {
    margin-top: 10px;
  }
}
</style>
